package com.yjy.demo01;

import com.yjy.demo02.Person;

public class My {
    public static void main(String[] args) {
        System.out.println("Holle  Word!");
    }

    public static class PersonTest {
        public static void main(String[] args) {
            Person person = new Person();
            person.setAge(25);
            System.out.println("设置后的年龄: " + person.getAge());

            person.setAge(-1);
            System.out.println("尝试设置不合法年龄后的年龄: " + person.getAge());
        }
    }
}

